home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / libs / x / xview / xview3.004 / xview3 / usr / openwin / include / pixrect / pr_planegroups.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-30  |  1.4 KB  |  51 lines

  1. /*    @(#)pr_planegroups.h 1.12 90/10/03 SMI    */
  2.  
  3. /*
  4.  * Copyright 1986 by Sun Microsystems, Inc.
  5.  */
  6.  
  7. #ifndef    pr_planegroups_DEFINED
  8. #define    pr_planegroups_DEFINED
  9.  
  10. /* Masks for frame buffer planes and plane group number */
  11. #define    PIX_ALL_PLANES        0x00FFFFFF
  12. #define    PIX_GROUP_MASK        0x7F
  13.  
  14. /* Macros to encode or extract group into or from attribute word */
  15. #define    PIX_GROUP(g)        ((g) << 25)
  16. #define    PIX_ATTRGROUP(attr)    ((unsigned)(attr) >> 25)
  17.  
  18. /* Flag bit which inhibits plane mask setting (for setting group only) */
  19. #define    PIX_DONT_SET_PLANES    (1 << 24)
  20.  
  21. /*  Plane groups definitions */
  22. /* !!! NOTE: Be sure to increment LAST_PLUS_ONE as new groups are added !!! */
  23.  
  24. #define    PIXPG_CURRENT        0
  25. #define PIXPG_MONO        1
  26. #define PIXPG_8BIT_COLOR    2
  27. #define PIXPG_OVERLAY_ENABLE    3
  28. #define PIXPG_OVERLAY         4
  29. #define PIXPG_24BIT_COLOR    5
  30. #define PIXPG_VIDEO        6
  31. #define PIXPG_VIDEO_ENABLE    7
  32. #define PIXPG_TRANSPARENT_OVERLAY    8
  33. #define PIXPG_WID        9    /* Window Id */
  34. #define PIXPG_ZBUF        10    /* Z (depth) buffer */
  35. #define    PIXPG_LAST_PLUS_ONE    11    /* array decls and loop termination */
  36. #define PIXPG_4BIT_OVERLAY    123
  37. #define PIXPG_ALT_COLOR        124
  38. #define PIXPG_A12BIT_COLOR    125
  39. #define PIXPG_B12BIT_COLOR    126
  40. #define    PIXPG_INVALID        127
  41.  
  42. #define MAKEPLNGRP(pg) (1 << (pg))
  43.  
  44. /* Plane groups functions */
  45. extern int pr_available_plane_groups();
  46. extern int pr_get_plane_group();
  47. extern void pr_set_plane_group();
  48. extern void pr_set_planes();
  49.  
  50. #endif    pr_planegroups_DEFINED
  51.